package com.ruoyi.mdkt.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.mdkt.entity.WXAuth;
import com.ruoyi.mdkt.entity.vo.RegistVo;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface UserLoginService {

    public R getSessionId(String code);

    public R authLogin(WXAuth wxAuth) throws InvalidAlgorithmParameterException, NoSuchPaddingException, IllegalBlockSizeException, UnsupportedEncodingException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException;

    public R regist(RegistVo registVo,Long userId);
}
